//子类
public class Cat extends Animal {
        public void miaomiao() {
            System.out.println(name+"miaomiao");
        }
        public static void main(String[] args) {
            Cat cat = new Cat();
            cat.name = "小咪";
            cat.eat();
            cat.sleep();
            cat.miaomiao();
        }
}
